package com.hoperun.nocserver.common.exception;

import com.hoperun.nocserver.common.enums.ResponseEnum;

/**
 * app异常类
 * 
 * @author zhu_longxiang
 *
 */
public class AppException extends RuntimeException {

	private static final long serialVersionUID = -2051875053631066430L;

	private Integer code;

	public AppException(ResponseEnum responseEnum) {
		super(responseEnum.getMsg());
		this.code = responseEnum.getCode();
	}

	public Integer getCode() {
		return code;
	}

}
